home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 008a / fglqbx10.zip / READ.ME < prev   
Text File  |  1991-06-12  |  2KB  |  43 lines

  1. The file FGLQBX10.ZIP contains QuickBASIC versions of all programs in the
  2. Fastgraph User's Guide.
  3.  
  4. The contents of this file are:
  5.  
  6.         READ.ME         this file
  7.         *.BAS           QuickBASIC example programs
  8.  
  9. The QuickBASIC function SETMEM is used in several of the Fastgraph example
  10. programs.  Specifically, it appears in the examples that use virtual video
  11. pages or the FGdispfile routine.  Since Fastgraph and Fastgraph/Light
  12. dynamically control their own memory allocation for these purposes, you must
  13. use SETMEM to reduce the size of QuickBASIC's far heap.
  14.  
  15. If your programs use FGdispfile, it is not absolutely necessary to use the
  16. SETMEM function, but it is more efficient to do so.  With FGdispfile, the
  17. value passed to SETMEM should ideally be -(n+16), where "n" is the size in
  18. bytes of the largest image file to be displayed.
  19.  
  20. If your programs use virtual video pages, you must use SETMEM.  In this case,
  21. the value passed to SETMEM must be at least -n*(p+16), where "n" is the
  22. number of virtual pages your program will allocate, and "p" is the largest
  23. virtual page size for any video mode under which your program will run.  Here
  24. are the virtual page sizes (i.e., the values of "p") for the video modes that
  25. use virtual pages.
  26.  
  27.                           Mode Number     Page Size
  28.                           -----------     ---------
  29.                                4            16,384
  30.                                5            16,384
  31.                                6            16,384
  32.                                7             4,096
  33.                                9            32,768
  34.                               11            32,768
  35.                               12            32,768
  36.                               19            64,000
  37.                           
  38. For example, suppose you want to write a program that runs in video modes 4,
  39. 9, 12, 13, and 19.  To calculate the value passed to SETMEM, you would use
  40. p = 64000 because mode 19 has the largest page size for the video modes your
  41. program supports.  Note that video mode 13 does not use virtual pages, so its
  42. page size is not relevant.
  43.